package com.xinzhidi.web.equipment.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.List;


/**
 * 批量分组dto equipment
 *
 * @author ruoyi
 * @date 2023-05-29
 */
@ApiModel(value = "批量分组dto")
@Data
@EqualsAndHashCode(callSuper = false)
public class SetGroupByIdDto {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "设备id")
    @NotNull(message = "设备id不能为空")
    private List<Long> ids;

    @ApiModelProperty(value = "小区id")
    @NotNull(message = "小区id不能为空")
    @Min(value = 0, message = "小区id不能比0小")
    private Long lotId;

    @ApiModelProperty(value = "分组id")
    @NotNull(message = "分组id不能为空")
    @Min(value = 0, message = "分组id不能比0小")
    private Long equipmentGroupId;

}
